package com.hq.ims.data.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.hq.mybatis.base.BaseModel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Builder;
import lombok.With;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;
import com.hq.ims.data.vo.auth.BaseRowAuthVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.hq.ims.data.vo.AllowLoginPlatformCompanyMapstruct;

/**
* @author 蒋柏平
* @since 20241028
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("AllowLoginPlatformCompany")
@TableName(value = "allow_login_platform_company")
@ApiModel(value = "允许登陆平台的公司", description = "允许登陆平台的公司")
public class AllowLoginPlatformCompany extends BaseModel<AllowLoginPlatformCompany> implements Serializable {

    @ApiModelProperty(value = "公司id")
    @TableId(value = "company_id",type = IdType.ASSIGN_UUID)
    private String companyId;

    public AllowLoginPlatformCompanyMapstruct.AllowLoginPlatformCompanyRowAuthVo auth(){
        AllowLoginPlatformCompanyMapstruct.AllowLoginPlatformCompanyRowAuthVo auth = new AllowLoginPlatformCompanyMapstruct.AllowLoginPlatformCompanyRowAuthVo(this);
        return auth;
    }

}
